package cn.ucox.web.ms.controller;

import cn.ucox.web.ms.service.ITecentUserConfirmService;
import cn.ucox.web.ms.util.ResultTecent;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

import static org.springframework.web.bind.annotation.RequestMethod.POST;

@RestController
@RequestMapping(value = "member/tencent")
public class TecentConfirmController {

    @Resource
    ITecentUserConfirmService tecentUserConfirmService;

    @ResponseBody
    @RequestMapping(value = "InsertLukex", method = POST)
    public ResultTecent GetwxSend(@RequestBody Map<String, String> map) {
        ResultTecent apiResult=new ResultTecent();
        try
        {
            return tecentUserConfirmService.InsertLukex(map);
        }
        catch (Exception ex)
        {
            apiResult.setErrorcode("-10004");
            apiResult.setErrormsg("服务未开启");
            apiResult.setData("");
            apiResult.setEntirety_time("");
            apiResult.setLib_time("");
            return apiResult;
        }

    }
}
